<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
  <title>reader</title>
  
  <link rel="stylesheet" href="//at.alicdn.com/t/font_651029_nojlfmdtr3kutyb9.css">
<script src="https://cdn.bootcss.com/babel-polyfill/6.23.0/polyfill.min.js"></script>

</head>

<body>
  <div id="app">


  </div>
  <!-- built files will be auto injected -->
  <script>
    //换算rem 
    (function () {
      function w() {
        var r = document.documentElement; //根元素html 
        var a = r.getBoundingClientRect().width;
        if (a > 750) {
          a = 750;
        }
        rem = a / 7.5;
        r.style.fontSize = rem + "px";
      }
      var t;
      w();
      window.addEventListener("resize", function () {
        clearTimeout(t);
        t = setTimeout(w, 300);
      }, false);
    })();
  

      //通用弹框
        //function DoAlert(msg) {
        //  document.querySelector("#AlertBlock").innerHTML= msg;
          // $("#AlertBlock").fadeIn();
          // //   $("body").css("opacity", 0.8);
          // setTimeout(function () {
          //   $("#AlertBlock").fadeOut();
          //   $("body").css("opacity", 1);
          // }, 2000);
        //}
  </script>
</body>

</html>
